<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Custom extends BaseModel
{
    /**
     *  客户所在地区
     */
    public function region(){
        return $this->belongsTo(Region::class);
    }

    /**
     *  负责该客户的用户
     */
    public function user(){
        return $this->belongsTo(User::class);
    }

    /**
     *  客户类型
     */
    public function type(){
        return $this->belongsTo(BaseData::class,'custom_type');
    }
}
